import useAxiosApi from "/@/utils/useAxiosApi";
const baseUrl = import.meta.env.VITE_APP_EDU_API;

export function getAllApply() {
    return useAxiosApi(baseUrl+`/getAllApply`, {
        method: 'GET',
        // data: {},
    });
}

export function getCourse(startDate,endDate,adjustType) {
    return useAxiosApi(baseUrl+`/getCourse`, {
        method: 'POST',
        data: {startDate:startDate,endDate:endDate,adjustType:adjustType},
    });
}
export function addApply(startDate,endDate,adjustType,reason,collegeID,items) {
    return useAxiosApi(baseUrl+`/addApply`, {
        method: 'POST',
        data: {startDate:startDate,endDate:endDate,adjustType:adjustType,reason:reason,collegeID:collegeID,items:items},
    });
}

export function getAllCollege() {
    return useAxiosApi(baseUrl+`/getAllCollege`, {
        method: 'GET',
    });
}
export function getTeacher(id) {
    return useAxiosApi(baseUrl+`/getTeacher`, {
        method: 'POST',
        data:{id:id}
    });
}
export function getAdjustById(id) {
    return useAxiosApi(baseUrl+`/getAdjustById`, {
        method: 'POST',
        data:{id:id}
    });
}

